package coop.bancocredicoop.proyectos.gd.rbac;

import javax.servlet.http.HttpSession;

import coop.bancocredicoop.proyectos.gd.GDConfig;

public class RBACFactory {

	public RBAC getRBAC(HttpSession session, String userName) throws Exception {
		
		if (new GDConfig().useRBACMock()) {
			return new RBACMock(session, userName);
		} else {
			return new RBACReal(session, userName);
		}	
		
		
	}

}
